package com.traffic.bus.service;

import org.springframework.stereotype.Service;

import com.traffic.util.HttpUtil;

import net.sf.json.JSONObject;

@Service
public class NoticeService {

	public JSONObject getNoticeInterFace() {
		String url = "http://jwebapi.wuhanbus.com:8125/bus_manage/notice/queryHasPublish.do?appId=HvBJ1PkBttbqxeBF46Aa";
		String myUrl = HttpUtil.doGet(url, null);
		JSONObject interFaceData = JSONObject.fromObject(myUrl);
		String resultCode = interFaceData.getString("resultCode");
		if("1".equals(resultCode)){// 数据返回成功
			
		}
		JSONObject json = interFaceData.getJSONObject("data");
		return interFaceData;
	}
}
